package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.MyBook;
import com.ruoyi.system.domain.vo.MyBookQueryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface MyBookMapper extends BaseMapper<MyBook> {

    List<MyBook> findAll(MyBookQueryVo myBookQueryVo);

    MyBook findByIdWithSub(@Param("bookId") Integer bookId);

    List<Map<String,Integer>> findSubScribeCount();
}
